package aos.server.robot;

import org.apache.log4j.Logger;

public class LocalRobotControllerProxy implements RobotControllerProxy {
	
	Logger logger = Logger.getLogger(LocalRobotControllerProxy.class);

	RobotController robotController;
	
	public LocalRobotControllerProxy() {
		robotController = new RobotController();
		logger.info("Local robot control proxy initialized");
	}
		
	public void setPosition(double xhead, double yhead, double xwheel, double ywheel) {
		logger.info("Update position Head [x: " + xhead + "; y: " + yhead + "] Wheel [x: " + xwheel + "; y: " + ywheel + "]");
		robotController.updatePosition(xhead, yhead, xwheel, ywheel);
	}

}
